import { WereWolfSeerPhase } from "@/werewolf/phases/seer";
import { WereWolfPhaseView } from "@/werewolf/phaseView";
import { world } from "@minecraft/server";
import { Dimensions } from "@sapi-game/constants";
import { ScriptRunner } from "@sapi-game/Runner/scriptRunner";

export class SeerCampView extends WereWolfPhaseView<WereWolfSeerPhase> {
    override async runPhaseView(r: ScriptRunner): Promise<void> {
        await r.wait(100);
        this.players.playSound("note.chime");
        this.players.title("§b预言家请睁眼", "§a请打开预言家APP");
        this.state.StartPhase();
        //预言家中心
        world.structureManager.place("lrs_center1", Dimensions.Overworld, {
            x: -207,
            y: -49,
            z: -187,
        });
    }
}
